const Map = {
	namespaced: true,
	state: () => ({
		data: null,
		map:{},
		openDistance:false,
		filterObj: {
			townsValue: "全部",
			streetsValue: "全部",
			figureTypeValue: "全部",
			title:"",
			value:""
		}
	}),
	getters: {


	},
	mutations: {
		openRanging(state) {
			state.openDistance = !state.openDistance
		},
		saveMap(state, map) {
			state.map = map
		},
		setFilterObj(state, filterObj) {
			state.filterObj = {
				title: filterObj.title,
				value: filterObj.value
			}
		}
	},
	actions:{
		setOpenRanging(context) {
			context.commit('openRanging')
		},
	}
}

export default Map
